# NOTE(jacobsa): The following dependencies are listed because they should be
# available to user code in a FLAME file, not because they are used by
# process_user_request.js.
#
#     get_current_package_name
#     register_action
#
$(eval $(call compiled_js_library, \
    flame/tool/process_user_request, \
        flame/graph/build_file_graph \
        flame/resolution/get_current_package_name \
        flame/external/invoke_command \
        flame/namespace \
        flame/external/output \
        flame/resolution/process_resolve_work \
        flame/resolution/register_action \
        flame/resolution/resolve_actions \
))

######################################################
# Binaries
######################################################

$(eval $(call cc_binary, \
    flame/tool/flame, \
        base/macros \
        base/stl_decl \
        file/file_utils \
        proto/named_scripts.pb \
        shell/invoke_command \
        v8/v8_utils \
        , \
        -lgflags -lglog -lprotobuf -lv8 \
))

######################################################
# Data dependencies
######################################################

flame/tool/flame.bin : share/process_user_request.binarypb
